www.gusucode.com > VC++ 打飞机游戏-源码程序 > VC++ 打飞机游戏-源码程序\code\src\AboutPage.cpp

    // AboutPage.cpp : implementation file
// Download by http://www.NewXing.com

#include "stdafx.h"
#include "fighter.h"
#include "AboutPage.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAboutPage property page

IMPLEMENT_DYNCREATE(CAboutPage, CPropertyPage)

CAboutPage::CAboutPage() : CPropertyPage(CAboutPage::IDD)
{
	//{{AFX_DATA_INIT(CAboutPage)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

CAboutPage::~CAboutPage()
{
}

void CAboutPage::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAboutPage)
	DDX_Control(pDX, IDC_HOMEPAGE, m_ctrlHyperHomepage);
	DDX_Control(pDX, IDC_EMAIL, m_ctrlHyperEmail);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAboutPage, CPropertyPage)
	//{{AFX_MSG_MAP(CAboutPage)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAboutPage message handlers
char *pArrCredit = {
"IDB_PLANE^||"
"打飞机游戏\t|版权所有(c) 2002.10.||"
"软件设计者\r|xiaogi|"
"E-mail: xiaogi@sohu.com||"
"作者个人主页\r|http://xiaogi.diy.163.com||"
"IDB_HEART^|"
"感谢\r|我的老婆张萍\t|在我编这个游戏期间|提供的支持||"
"同时也要感谢\r|各位玩友\t|欣赏这个游戏||"
"IDB_HEART^|"
"游戏有问题请与我联系\r|我一定尽力帮助你|||"
"IDB_HEART^|"
"非常欢迎\r|朋友们对此游戏提出批评与建议|||"
"||||"
};

BOOL CAboutPage::OnInitDialog() 
{
	CPropertyPage::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_ctrlHyperEmail.SetURL(_T("mailto:xiaogi@sohu.com"));
	m_ctrlHyperHomepage.SetURL(_T("http://xiaogi.diy.163.com"));

	m_static.SubclassDlgItem(IDC_DISPLAY_STATIC,this);
	m_static.SetCredits(pArrCredit,'|');
	m_static.SetSpeed(DISPLAY_MEDIUM);
	m_static.SetColor(BACKGROUND_COLOR, RGB(0,0,255));
	m_static.SetTransparent();
//	m_static.SetGradient(GRADIENT_RIGHT_DARK);
	m_static.SetBkImage(IDB_SHANSHUI);
	m_static.StartScrolling();
	TimerOn = SetTimer(151,5000,NULL);
    ASSERT(TimerOn != 0);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}